import 'package:flutter/material.dart';
import 'package:flutter_audit_app/model/list_view_header_model.dart';

///  项目名称：flutter_audit_app
///  Created by leon on 2020/10/21 .

///  简单列表项
///
class SampleListItem<P extends List<ListViewHeaderModel>, R> extends StatelessWidget {
  ///宽度
  final double _width;

  ///weight
  final int _weight;

  ///是否使用权重
  final bool _useWeight;

  ///列数
  final int _rowCount;

  SampleListItem(bool useWeight, {
    Key key,
    double width,
    int weight,
    int rowCount,
  })
      : _width = width,
        _weight = weight,
        _useWeight = useWeight ??= true,
        _rowCount = rowCount,
        super(key: key);

  @override
  Widget build(BuildContext context) {
    if (_useWeight){

      // return
    };
  }
}
